Converting Long Date and Time Values Into Strings
This section describes two procedures that use theLongDateTime
data type in their conversions. This is a 64-bit, signed representation of the number of seconds since Jan. 1, 1904, which allows coverage of a much longer span of time (plus or minus approximately 30,000 years) than the standard, 32-bit representation.LongDateTime
values are described in the book Inside Macintosh: Operating System Utilities.
- The
LongDateString
procedure
converts a date inLongDateTime
representation into a string, making use of the date formatting information from a specified resource. If you specifyNIL
as the value of the resource handle parameter,LongDateString
uses information from the current script.- The
LongTimeString
procedure
converts a time inLongDateTime
representation into a string, making use of the date formatting information from a specified resource. If you specifyNIL
as the value of the resource handle parameter,LongTimeString
uses information from the current script.
Subtopics
- LongDateString
- LongTimeString